package com.wjgl.domain;

import java.util.HashSet;
import java.util.Set;

/**
 * Institution entity. @author MyEclipse Persistence Tools
 */

public class Institution implements java.io.Serializable {

	// Fields

	private Integer id;
	private Institution institution;
	private String name;
	private Short level;
	private Short state;
	private String address;
	private Integer adminId;
	private Set users = new HashSet(0);
	private Set departments = new HashSet(0);
	private Set institutions = new HashSet(0);

	// Constructors

	/** default constructor */
	public Institution() {
	}

	/** minimal constructor */
	public Institution(String name, Short level, Short state) {
		this.name = name;
		this.level = level;
		this.state = state;
	}

	/** full constructor */
	public Institution(Institution institution, String name, Short level,
			Short state, String address, Integer adminId, Set users,
			Set departments, Set institutions) {
		this.institution = institution;
		this.name = name;
		this.level = level;
		this.state = state;
		this.address = address;
		this.adminId = adminId;
		this.users = users;
		this.departments = departments;
		this.institutions = institutions;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Institution getInstitution() {
		return this.institution;
	}

	public void setInstitution(Institution institution) {
		this.institution = institution;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Short getLevel() {
		return this.level;
	}

	public void setLevel(Short level) {
		this.level = level;
	}

	public Short getState() {
		return this.state;
	}

	public void setState(Short state) {
		this.state = state;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getAdminId() {
		return this.adminId;
	}

	public void setAdminId(Integer adminId) {
		this.adminId = adminId;
	}

	public Set getUsers() {
		return this.users;
	}

	public void setUsers(Set users) {
		this.users = users;
	}

	public Set getDepartments() {
		return this.departments;
	}

	public void setDepartments(Set departments) {
		this.departments = departments;
	}

	public Set getInstitutions() {
		return this.institutions;
	}

	public void setInstitutions(Set institutions) {
		this.institutions = institutions;
	}

}